import 'package:flutter/material.dart';

class myIconButton extends StatelessWidget {
  myIconButton(
      {required this.myIcon,
        required this.onPressed,
        required this.buttonText});

  final Icon myIcon;
  final void Function() onPressed;
  final String buttonText;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      child: Column(
        children: [
          myIcon,
          Text(
            buttonText,
            style: TextStyle(
              color: Colors.black,
              fontSize: 12,
            ),
          )
        ],
      ),
      onTap: onPressed,
    );
  }
}
